home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Development Platforms / CSMP Digests / csmp-v1-065.txt < prev    next >
Encoding:
Text File  |  1992-11-18  |  9.8 KB  |  259 lines  |  [TEXT/MPS ]

  1. C.S.M.P. Digest             Thu, 30 Apr 92       Volume 1 : Issue 65
  2.  
  3. Today's Topics:
  4.  
  5.     Using Macsbug ??
  6.  
  7.  
  8. The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
  9.  
  10. These digests are available (by using FTP, account anonymous, your email
  11. address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
  12. edu.  This is also the home of the comp.sys.mac.programmer Frequently Asked
  13. Questions list.  The last several issues of the digest are available from
  14. sumex-aim.stanford.edu as well.
  15.  
  16. These digests are also available via email.  Just send a note saying that you
  17. want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
  18. automatically receive each new digest as it is created.
  19.  
  20. The articles in these digests are taken directly from comp.sys.mac.programmer.
  21. They are not edited; all articles included in this digest are in their original
  22. posted form.  The only articles that are -not- included in these digests are
  23. those which didn't receive any replies (except those that give information
  24. rather than ask a question).  All replies to each article are concatenated
  25. onto the original article in the order in which they were received.  Article
  26. threads are not added to the digests until the last article added to the
  27. thread is at least one month old (this is to ensure that the thread is dead
  28. before adding it to the digests).
  29.  
  30. Send administrative mail to mkelly@cs.uoregon.edu.
  31.  
  32. -------------------------------------------------------
  33.  
  34. From: yeongm2@aix.rpi.edu (Mengyik Yeong)
  35. Subject: Using Macsbug ??
  36. Date: Mon, 2 Mar 1992 04:51:50 GMT
  37.  
  38. I have gathered from past discussions in this group that Macsbug will
  39. permit an elegant recovery from a hung application/program.  Better
  40. than pressing the reset switch anyway.   I also gathered that it has 
  41. to be put in the system folder.  This I have done and was rewarded
  42. with "Macsbug installed" at the Welcom Macintosh screen.
  43.  
  44. Now my question!  How do I use it to get back to the Finder after
  45. a hung application/program.  I know I have to press the Interrupt
  46. switch.  This I have tried and was put into Macsbug.  Thats where
  47. I get stuck.  I have gone thru the help in Macsbug, but I still can't
  48. figure out how to get back to the finder.
  49.  
  50. I want to use this mainly with Think C 5.0, when I get totally
  51. stuck and can't break out any other way.  Are there any precautions
  52. I should keep in mind when using Macsbug?
  53.  
  54. Also, whats the purpose of the debugger-pref-resource file?  I got
  55. Macsbug from ftp.apple.com and can't figure out this file.
  56.  
  57. Thanks in advance.
  58.  
  59. Mengyik
  60. yeongm2@rpi.edu
  61.  
  62.  
  63.  
  64.  
  65. - -------------------------
  66.  
  67. From: dougm@descartes.cns.caltech.edu (Doug McNaught)
  68. Subject:  Using Macsbug ??
  69. Organization: California Institute of Technology
  70. Date: Mon, 2 Mar 1992 14:28:45 GMT
  71.  
  72. In article <ka4sa1g@rpi.edu> yeongm2@aix.rpi.edu (Mengyik Yeong) writes:
  73.   [he installed MacsBug in his System Folder]
  74. >
  75. >Now my question!  How do I use it to get back to the Finder after
  76. >a hung application/program.  I know I have to press the Interrupt
  77. >switch.  This I have tried and was put into Macsbug.  Thats where
  78. >I get stuck.  I have gone thru the help in Macsbug, but I still can't
  79. >figure out how to get back to the finder.
  80.  
  81.   Type 'es' (stands for ExitToShell) at the MacsBug prompt. This will get you
  82. back to the Finder about 95% of the time. Once back in the Finder, 
  83. *immediately* choose "Restart" from the Special menu. There's no telling what
  84. your hung application has done to the system.
  85. >
  86. >I want to use this mainly with Think C 5.0, when I get totally
  87. >stuck and can't break out any other way.  Are there any precautions
  88. >I should keep in mind when using Macsbug?
  89.  
  90.   Look at memory all you want, but don't change anything unless you know what
  91. you're doing. As an aside, there are times when you want to look at your
  92. variables in MacsBug--the trick I use is to drop into MacsBug, type 
  93. 'atb GetNextEvent' and then 'g'. This drops you into the debugger at the point
  94. that your app calls GNE (substitute WNE if that's what you use, as we all 
  95. should), so you're at a well-known point in the code, and your heap is going
  96. to be consistent.
  97.  
  98. >Also, whats the purpose of the debugger-pref-resource file?  I got
  99. >Macsbug from ftp.apple.com and can't figure out this file.
  100.  
  101.   It contains symbolic definitions and is where you put dcmd extensions if
  102. you want to use them. There's an Apple book on MacsBug that I plan to get when
  103. I can afford it--it's published as usual by Addison-Wesley.
  104.  
  105. regards,
  106. doug
  107. -- 
  108. <><><><><><><><><><><><><><><>Go Skins!!<><><><><><><><><><><><><><><><>
  109. <> Doug McNaught                          dougm@descartes.caltech.edu <>
  110. <>  Help!!! I'm addicted to *Spaceward Ho!* Is there a support group? <>
  111. <><><><><><><><><><><><><><><>Go Skins!!<><><><><><><><><><><><><><><><>
  112.  
  113.  
  114.  
  115. - -------------------------
  116.  
  117. From: dougm@descartes.cns.caltech.edu (Doug McNaught)
  118. Subject:  Using Macsbug ??
  119. Organization: California Institute of Technology
  120. Date: Mon, 2 Mar 1992 15:47:48 GMT
  121.  
  122.  
  123. After my previous post on this subject, I received the following reply from
  124. Tim Hollebeek (s0136316@ursa.calvin.edu).
  125.  
  126. - -------Begin quote from Tim Hollebeek--------
  127. In comp.sys.mac.programmer you write:
  128.  
  129.  [a previous poster asks how to get to the Finder from MacsBug]
  130.  
  131. >  Type 'es' (stands for ExitToShell) at the MacsBug prompt. This will get you
  132. >back to the Finder about 95% of the time. Once back in the Finder, 
  133. >*immediately* choose "Restart" from the Special menu. There's no telling what
  134. >your hung application has done to the system.
  135.  
  136. However, BE VERY CAREFULL ... TYPING 'ES' while in some toolbox routine can
  137. (about 1 in 100 by my experience) corrupt open resource files (YOUR program,
  138. YOUR system file, ESPECIALLY macro maker files).
  139.  
  140. You should first do an 'atba' specifying all traps (type 'help atba' for info
  141. on how to do this).  Then you will be in a spot where it is guaranteed to be 
  142. safe to to an 'ES'.
  143.  
  144. (*** For Mac Hackers:  ES calls the _ExitToShell trap, which can cause problems
  145. if the computer is in some extremely funky intermediate state (processing an 
  146. interupt, in the middle of a quick and dirty routine, etc.).  The 'atba' makes
  147. sure you are out of the toolbox and in a semi-normal state. ***)
  148.  
  149. Please post this, since I cannot post from here, but this is a relatively 
  150. unknown problem with using the programmer's switch to save yourself from crashes, and I was forced to learn the truth the hard way.
  151.  
  152. -- 
  153. - ----------------------------------------------------------------------------
  154. Tim Hollebeek
  155. s0136316@ursa.calvin.edu
  156.  
  157. - ----------------------------------------------------------------------------
  158.  
  159. - -------End quote from Tim Hollebeek----------
  160.  
  161. Thanks, Tim! I'll try and remember that. Makes a lot of sense.
  162. regards,
  163. doug
  164.  
  165. -- 
  166. <><><><><><><><><><><><><><><>Go Skins!!<><><><><><><><><><><><><><><><>
  167. <> Doug McNaught                          dougm@descartes.caltech.edu <>
  168. <>  Help!!! I'm addicted to *Spaceward Ho!* Is there a support group? <>
  169. <><><><><><><><><><><><><><><>Go Skins!!<><><><><><><><><><><><><><><><>
  170.  
  171.  
  172.  
  173. +++++++++++++++++++++++++++
  174.  
  175. From: Ray.Arachelian@f204.n2603.z1.ieee.org (Ray Arachelian)
  176. Date: 14 Mar 92 04:15:00 GMT
  177. Organization: FidoNet node 1:2603/204 - Not Even Odd, Forest Hills NY
  178.  
  179. to: doug@descartest.cns.caltech
  180.  
  181. On 03-02-92, DOUGM@DESCARTES.CNS.CALTE wrote to ALL:
  182.  
  183.  D>   It contains symbolic definitions and is where you put dcmd 
  184.  D> extensions if you want to use them. There's an Apple book on MacsBug 
  185.  D> that I plan to get when I can afford it--it's published as usual by 
  186.  D> Addison-Wesley. 
  187.  
  188. Are there any dcmd's out there that will let one assemble as well as 
  189. disassemble?  How about a ResEdit code editor pref that will let one 
  190. assemble?  I've seen the disassemble version of the code editor, but it 
  191. isn't of much help.
  192.  
  193.  * Freddie 1.1 * You have been found guilty of commerce with the devil.
  194.  
  195. - --  
  196. =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  197.  Ray Arachelian - Internet: Ray.Arachelian@f204.n2603.z1.ieee.org
  198.  
  199. +++++++++++++++++++++++++++
  200.  
  201. From: ksand@apple.com (Kent Sandvik)
  202. Date: 30 Mar 92 03:02:15 GMT
  203. Organization: MacDTS Mongols
  204.  
  205. In article <12932.29C6B9DC@ieee.org>, Ray.Arachelian@f204.n2603.z1.ieee.org (Ray
  206. Arachelian) writes:
  207. > to: doug@descartest.cns.caltech
  208. > On 03-02-92, DOUGM@DESCARTES.CNS.CALTE wrote to ALL:
  209. >  D>   It contains symbolic definitions and is where you put dcmd 
  210. >  D> extensions if you want to use them. There's an Apple book on MacsBug 
  211. >  D> that I plan to get when I can afford it--it's published as usual by 
  212. >  D> Addison-Wesley. 
  213. > Are there any dcmd's out there that will let one assemble as well as 
  214. > disassemble?  How about a ResEdit code editor pref that will let one 
  215. > assemble?  I've seen the disassemble version of the code editor, but it 
  216. > isn't of much help.
  217.  
  218. One of our DTS engineers (former actually) wrote such a dcmd, I don't
  219. know when it will become shareware though (RSN I guess).
  220.  
  221. Cheers,
  222. Kent Sandvik/DTS
  223.  
  224. +++++++++++++++++++++++++++
  225.  
  226. From: REEKES@applelink.apple.com (Jim Reekes)
  227. Date: 30 Mar 92 03:12:14 GMT
  228. Organization: Apple Computer, Inc.
  229.  
  230. In article <22136@goofy.Apple.COM>, ksand@apple.com (Kent Sandvik) writes:
  231. > In article <12932.29C6B9DC@ieee.org>, Ray.Arachelian@f204.n2603.z1.ieee.org (Ray
  232. > Arachelian) writes:
  233. > > 
  234. > > to: doug@descartest.cns.caltech
  235. > > 
  236. > > On 03-02-92, DOUGM@DESCARTES.CNS.CALTE wrote to ALL:
  237. > > 
  238. > >  D>   It contains symbolic definitions and is where you put dcmd 
  239. > >  D> extensions if you want to use them. There's an Apple book on MacsBug 
  240. > >  D> that I plan to get when I can afford it--it's published as usual by 
  241. > >  D> Addison-Wesley. 
  242. > > 
  243. > > Are there any dcmd's out there that will let one assemble as well as 
  244. > > disassemble?  How about a ResEdit code editor pref that will let one 
  245. > > assemble?  I've seen the disassemble version of the code editor, but it 
  246. > > isn't of much help.
  247.  
  248. Use TMON.
  249.  
  250. ---------------------------
  251.  
  252. End of C.S.M.P. Digest
  253. **********************
  254.